<template>
  <div>
    <h2>{{str}}</h2>
 <button @click="one">点击</button>
  </div>
</template>

<script>
export default {
  data(){
return {
  str:'暗夜凶光斩'
}
  },
  methods: {
  one(){
this.str=this.str.split('').reverse('').join('')  
  },
 
  }
}
</script>

<style>
h2{
  color: aquamarine;
}
</style>

